<template>
	<router-view v-if="isRouterAlive"/>
</template>

<script>
import { ref, nextTick, provide } from "vue";
export default {
  setup() {
    const isRouterAlive = ref(true);
    const reload = () => {
      isRouterAlive.value = false;
      nextTick(() => {
        isRouterAlive.value = true;
      });
    };
    provide('reload', reload);
    return {
      isRouterAlive,reload
    };
  },
};
</script>

<style>
@import 'assets/css/main.css';
@import 'assets/css/color-dark.css';
</style>

